xen/arm: gic: Do not configure affinity during routing
authorJulien Grall <julien.grall@arm.com>
Wed, 27 Jul 2016 13:58:23 +0000 (14:58 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 27 Jul 2016 19:23:10 +0000 (12:23 -0700)
commit16580cde5afca51fd9b599c026265b35d4c86079
treeee5938b0e546408e2607464327c34e2ce7c995fb
parent0969e2e432d7ab7309a0a3ad4e39c480dc119d7d
xen/arm: gic: Do not configure affinity during routing

The affinity of a guest IRQ is set every time the guest enable it (see
vgic_enable_irqs).

It is not necessary to set the affinity when the IRQ is routed to the
guest because Xen will never receive the IRQ until it hass been enabled
by the guest.

To keep gic_route_irq_to_{xen,guest} behaving the same way (i.e just
setting up the routing), the affinity of IRQ routed to Xen is moved into
__setup_irq.

Signed-off-by: Julien grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic.c
xen/arch/arm/irq.c
xen/include/asm-arm/gic.h